Skip to content

Conversation

@cpsievert
Copy link
Collaborator

Currently when streaming with the Shiny for Python ui.Chat() component, the entire accumulated content string gets sent on every chunk. This is because @transform_assistant_response allows you to transform the entire content string.

{shinychat} doesn't (at least not yet) support transformations in this same way, so it wants the ability to append each chunk. This PR adds that opt-in operation: "append" mode of updating the content string.

@cpsievert cpsievert requested a review from jcheng5 December 16, 2024 21:44
@jcheng5 jcheng5 merged commit ecc5c14 into main Dec 21, 2024
41 checks passed
@jcheng5 jcheng5 deleted the chat-append-incremental branch December 21, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants